package com.cwm.test.command;

import com.cwm.test.command.command.Command;
import com.cwm.test.command.command.impl.ConcreteCommand1;
import com.cwm.test.command.invoker.Invoker;
import com.cwm.test.command.receiver.Receiver;
import com.cwm.test.command.receiver.impl.ConcreteReciver1;

public class Client {
    public static void main(String[] args) {
        Invoker invoker = new Invoker();
        Receiver receiver = new ConcreteReciver1();
        Command command = new ConcreteCommand1(receiver);
        invoker.setCommand(command);
        invoker.action();
    }
}